package main

import (
	"fmt"
	"reflect"
)

func main() {
	var a int8 = 1
	var b int32 = 1
	var c int64 = 1
	var d int = 1
	fmt.Printf("%d, %T\n", a, a)
	fmt.Printf("%d, %T\n", b, b)
	fmt.Printf("%d, %T\n", c, c)
	fmt.Printf("%d, %T\n", d, d)
	//通过内置包的方式获取类型
	fmt.Println(reflect.TypeOf(d))

}
